/*
 * @Description: 表单问卷
 * @Author: xinqiao lxq1990.0716@qq.com
 * @Date: 2024-03-06
 * @LastEditors: 何伟伦 weilun@ssc-hn.com
 * @LastEditTime: 2024-07-04
 */
import request from '/@/api/request'

/** 获取问卷表单信息 */
export const requestTemplateForm = (data: GetJsonTypes.IRequest) => {
  return request.get<IBaseResponse<GetJsonTypes.IResponse>>(`/content/survey/unAuth/api/json/V2/${data.templateFormId}.json`)
}

/**  获取问卷及试题列表 */
export const requestPaperAndQuestions = (data: GetJsonTypes.IPaperRequest) => {
  return request.post<IBaseResponse<GetJsonTypes.IPaperResponse>>('/content/survey/getPaperAndQuestions', data)
}

/** 根据recordId获取表单信息 */
export const requestPaperDetail = (data: GetPaperDetailTypes.IRequest) => {
  return request.post<IBaseResponse<GetPaperDetailTypes.IResponse>>(`/content/survey/getMyPaperDetail`, data)
}
